package com.glory.brepda.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class WoPartWobomline implements Serializable {

    private WoPartWobomline.WoBean WORKORDER;
    private WoPartWobomline.PartBean PART;
    private List<XWorkOrderBomLine>  WORKORDERBOMLINELIST;
    private List<XWorkOrderSource>  WIPWOSOURCE;
    private List<BreWaferHDOnTest>  WIPWOHAVEDATA;

    private String woId;
    private String mhWoId;
    private String hyh;
    private String pdm;
    private String eqpId;

    private String ISPRINTSTRIPQTY;

    private String STRIPQTY;

    private String RLFQTY;

    private String CHIPRATE;

    public String getRLFQTY() {
        return RLFQTY;
    }

    public void setRLFQTY(String RLFQTY) {
        this.RLFQTY = RLFQTY;
    }

    public String getCHIPRATE() {
        return CHIPRATE;
    }

    public void setCHIPRATE(String CHIPRATE) {
        this.CHIPRATE = CHIPRATE;
    }

    public String getISPRINTSTRIPQTY() {
        return ISPRINTSTRIPQTY;
    }

    public void setISPRINTSTRIPQTY(String ISPRINTSTRIPQTY) {
        this.ISPRINTSTRIPQTY = ISPRINTSTRIPQTY;
    }

    public String getSTRIPQTY() {
        return STRIPQTY;
    }

    public void setSTRIPQTY(String STRIPQTY) {
        this.STRIPQTY = STRIPQTY;
    }

    public String getWoId() {
        return woId;
    }

    public void setWoId(String woId) {
        this.woId = woId;
    }

    public String getMhWoId() {
        return mhWoId;
    }

    public void setMhWoId(String mhWoId) {
        this.mhWoId = mhWoId;
    }

    public String getHyh() {
        return hyh;
    }

    public void setHyh(String hyh) {
        this.hyh = hyh;
    }

    public String getPdm() {
        return pdm;
    }

    public void setPdm(String pdm) {
        this.pdm = pdm;
    }

    public String getEqpId() {
        return eqpId;
    }

    public void setEqpId(String eqpId) {
        this.eqpId = eqpId;
    }

    public List<BreWaferHDOnTest> getWIPWOHAVEDATA() {
        return WIPWOHAVEDATA;
    }

    public void setWIPWOHAVEDATA(List<BreWaferHDOnTest> WIPWOHAVEDATA) {
        this.WIPWOHAVEDATA = WIPWOHAVEDATA;
    }

    public List<XWorkOrderSource> getWIPWOSOURCE() {
        return WIPWOSOURCE;
    }

    public void setWIPWOSOURCE(List<XWorkOrderSource> WIPWOSOURCE) {
        this.WIPWOSOURCE = WIPWOSOURCE;
    }

    public WoPartWobomline.WoBean getWORKORDER() {
        return WORKORDER;
    }

    public void setWORKORDER(WoPartWobomline.WoBean WORKORDER) {
        this.WORKORDER = WORKORDER;
    }

    public WoPartWobomline.PartBean getPART() {
        return PART;
    }

    public void setPART(WoPartWobomline.PartBean PART) {
        this.PART = PART;
    }

    public List<XWorkOrderBomLine> getWORKORDERBOMLINELIST() {
        if (WORKORDERBOMLINELIST == null) {
            return new ArrayList<>();
        }
        return WORKORDERBOMLINELIST;
    }

    public void setWORKORDERBOMLINELIST(List<XWorkOrderBomLine> WORKORDERBOMLINELIST) {
        this.WORKORDERBOMLINELIST = WORKORDERBOMLINELIST;
    }


    public class WoBean implements Serializable {

        private String RESERVED3;
        private String DOCTYPE;
        @SerializedName("CUSTOMERORDER")
        private String CUSTOMERORDER;
        private String CUSTOMERCODE;

        private WoPartWobomline.WORKORDERUDFEntity UDF;

        public String getCUSTOMERCODE() {
            return CUSTOMERCODE;
        }

        public void setCUSTOMERCODE(String CUSTOMERCODE) {
            this.CUSTOMERCODE = CUSTOMERCODE;
        }

        public String getCUSTOMERORDER() {
            return CUSTOMERORDER == null ? "" : CUSTOMERORDER;
        }

        public void setCUSTOMERORDER(String CUSTOMERORDER) {
            this.CUSTOMERORDER = CUSTOMERORDER;
        }

        public String getRESERVED3() {
            return RESERVED3 == null ? "" : RESERVED3;
        }

        public void setRESERVED3(String RESERVED3) {
            this.RESERVED3 = RESERVED3;
        }

        public String getDOCTYPE(){return DOCTYPE==null?"":DOCTYPE;}

        public void setDOCTYPE(String DOCTYPE){this.DOCTYPE=DOCTYPE;}

        public WoPartWobomline.WORKORDERUDFEntity getUDF() {
            return UDF;
        }

        public void setUDF(WoPartWobomline.WORKORDERUDFEntity UDF) {
            this.UDF = UDF;
        }

    }

    public static class WORKORDERUDFEntity implements Serializable {
        private String sealApprovedFlag;
        private String mainMatType;

        public String getMainMatType() {
            return mainMatType;
        }

        public void setMainMatType(String mainMatType) {
            this.mainMatType = mainMatType;
        }

        public String getsealApprovedFlag() {
            return sealApprovedFlag == null ? "" : sealApprovedFlag;
        }

        public void setsealApprovedFlag(String sealApprovedFlag) {
            this.sealApprovedFlag = sealApprovedFlag;
        }
    }


    public class PartBean implements Serializable {
        private String SPEC2;
        private WoPartWobomline.PARTUDFEntity UDF;

        public String getSPEC2() {
            return SPEC2 == null ? "" : SPEC2;
        }

        public void setSPEC2(String SPEC2) {
            this.SPEC2 = SPEC2;
        }

        public WoPartWobomline.PARTUDFEntity getUDF() {
            return UDF;
        }

        public void setUDF(WoPartWobomline.PARTUDFEntity UDF) {
            this.UDF = UDF;
        }

    }

    public static class PARTUDFEntity implements Serializable {
        private String carRules;

        public String getcarRules() {
            return carRules == null ? "" : carRules;
        }

        public void setcarRules(String carRules) {
            this.carRules = carRules;
        }
    }

    public class XWorkOrderBomLine implements Serializable {

        @SerializedName("WOID")
        private String woId;
        @SerializedName("MATERIALNAME")
        private String materialName;
        @SerializedName("MATERIALTYPE")
        private String materialType;

        private String MATERIALDESC;

        public String getMATERIALDESC() {
            return MATERIALDESC;
        }

        public void setMATERIALDESC(String MATERIALDESC) {
            this.MATERIALDESC = MATERIALDESC;
        }

        public String getWoId() {
            return woId;
        }

        public void setWoId(String woId) {
            this.woId = woId;
        }

        public String getMaterialName() {
            return materialName;
        }

        public void setMaterialName(String materialName) {
            this.materialName = materialName;
        }

        public String getMaterialType() {
            return materialType;
        }

        public void setMaterialType(String materialType) {
            this.materialType = materialType;
        }
    }

    public class XWorkOrderSource implements Serializable{

        @SerializedName("RESERVED3")
        private String reserved3;

        @SerializedName("RESERVED5")
        private String reserved5;

        @SerializedName("SOURCE_MLOT_ID")
        private String sourceMlotId;

        public String getReserved3() {
            return reserved3;
        }

        public void setReserved3(String reserved3) {
            this.reserved3 = reserved3;
        }

        public String getSourceMlotId() {
            return sourceMlotId;
        }

        public void setSourceMlotId(String sourceMlotId) {
            this.sourceMlotId = sourceMlotId;
        }

        public String getReserved5() {
            return reserved5;
        }

        public void setReserved5(String reserved5) {
            this.reserved5 = reserved5;
        }
    }

    public class BreWaferHDOnTest implements Serializable{
        @SerializedName("ethyh")
        private String ethyh;

        public String getEthyh() {
            return ethyh;
        }

        public void setEthyh(String ethyh) {
            this.ethyh = ethyh;
        }
    }


}
